<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/2
  Time: 21:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="${pageContext.request.contextPath}/assets/images/favicon.png" type="image/png">
    <title>用户列表</title>

    <!--Begin  Page Level  CSS -->
    <link href="${pageContext.request.contextPath}/assets/plugins/morris-chart/morris.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/assets/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet"/>
    <!--End  Page Level  CSS -->
    <link href="${pageContext.request.contextPath}/assets/css/icons.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/assets/css/style.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/assets/css/responsive.css" rel="stylesheet">
    <style>
        .div1 {
            width: 20px;
            height: 20px;
            border-radius: 20px;
            border: 2px solid black;
            line-height: 16px;
            text-align: center;
            color: black;
            display: inline-block;
            position: relative;
            left: 30%;
            margin-right: 150px;
            margin-bottom: 30px;
        }

        .span1 {
            position: relative;
            left: 28%;
            margin-right: 80px;
            margin-bottom: 30px;
            display: inline-block;
        }

        .button1 {
            position: relative;
            left: 40%;
        }

    </style>
</head>

<body class="sticky-header">


<jsp:include page="../inc/left.jsp"/>


<!-- main content start-->
<div class="main-content">

    <jsp:include page="../inc/header.jsp"/>


    <!--body wrapper start-->
    <div class="wrapper">

        <!--Start Page Title-->
        <div class="page-title-box">
            <h4 class="page-title">商品添加</h4>
            <ol class="breadcrumb">
                <li>
                    <a href="#">首页</a>
                </li>
                <li>
                    <a href="#">商品</a>
                </li>
                <li class="active">
                    商品添加
                </li>
            </ol>
            <div class="clearfix"></div>
        </div>
        <!--End Page Title-->


        <!--Start row-->
        <div class="row">
            <div class="col-md-12">
                <div class="white-box">
                  <br>
                    <div class="div1">1</div>

                    <div class="div1">2</div>
                    <div class="div1">3</div>
                    <br>
                    <span class="span1">填写商品信息</span>
                    <span class="span1">填写商品促销</span>
                    <span class="span1">填写商品属性</span>
                    <form class="form-horizontal" action="${pageContext.request.contextPath}/goods/productSell"
                          method="post">
                        <div class="form-group">
                            <label class="col-md-2 control-label"><span style="color: red">*&nbsp;</span>商品分类</label>
                            <div class="col-md-10">
                                <select class="form-control" style="width: 300px" required name="productCategoryId">
                                    <option value="">全部</option>
                                    <c:forEach items="${category}" var="ct">
                                        <option value="${ct.id}" ${pro.productCategoryId==ct.id?"selected":""}>${ct.name}</option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label"><span style="color: red">*&nbsp;</span>商品名称</label>
                            <div class="col-md-10">
                                <input name="name" required class="form-control" value="${pro.name}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label"><span style="color: red">*&nbsp;</span>副标题</label>
                            <div class="col-md-10">
                                <input name="subTitle" required class="form-control" value="${pro.subTitle}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">商品品牌</label>
                            <div class="col-md-10">
                                <select class="form-control" style="width: 300px" name="brandId">
                                    <option value="">全部</option>
                                    <c:forEach items="${brands}" var="b">
                                        <option value="${b.id}" ${pro.brandId==b.id?"selected":""}>${b.name}</option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">商品介绍</label>
                            <div class="col-md-10">
                                <textarea name="description" placeholder="请输入内容" class="form-control"
                                          value="${pro.description}"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">商品货号</label>
                            <div class="col-md-10">
                                <input name="productSn" class="form-control" value="${pro.productSn}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">商品售价</label>
                            <div class="col-md-10">
                                <input name="price" class="form-control" value="${pro.price}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">市场价</label>
                            <div class="col-md-10">
                                <input name="originalPrice" class="form-control" value="${pro.originalPrice}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">商品库存</label>
                            <div class="col-md-10">
                                <input name="stock" class="form-control" value="${pro.stock}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">计量单位</label>
                            <div class="col-md-10">
                                <input name="unit" class="form-control" value="${pro.unit}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">商品重量</label>
                            <div class="col-md-10">
                                <input name="weight" style="width: 96%;display: inline"  class="form-control" value="${pro.weight}">&emsp;克
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">排序</label>
                            <div class="col-md-10">
                                <input name="sort" class="form-control" value="${pro.sort}">
                            </div>
                        </div>

                        <button type="submit" class="button1 btn btn-success round">下一步,填写商品促销</button>

                    </form>
                </div>
            </div>
        </div>
        <!--End row-->


    </div>
    <!-- End Wrapper-->


    <jsp:include page="../inc/footer.jsp"/>

</div>
<!--End main content -->


<!--Begin core plugin -->
<script src="${pageContext.request.contextPath}/assets/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/assets/plugins/moment/moment.js"></script>
<script src="${pageContext.request.contextPath}/assets/js/jquery.slimscroll.js "></script>
<script src="${pageContext.request.contextPath}/assets/js/jquery.nicescroll.js"></script>
<script src="${pageContext.request.contextPath}/assets/js/functions.js"></script>
<!-- End core plugin -->

</body>
</html>
